import 'package:get/get.dart';

import '../../../logger/Logger.dart';

class BindtipController extends GetxController {

  var wkMasterUserName = ''.obs;
  var wkSN = ''.obs;
  var errorType = ''.obs;

  @override
  void onInit() {
    super.onInit();
    if (Get.arguments != null) {
      Map params = Get.arguments;
      errorType.value = params['type'];

      if(params.containsKey('nickName'))
      wkMasterUserName.value = Get.arguments['nickName'];
      if(params.containsKey('robotUserId'))
      wkSN.value = Get.arguments['robotUserId'];


    }

    logger.info('bind tips errorType.value ===> ${errorType.value}');

  }

  @override
  void onReady() {
    super.onReady();
  }

  @override
  void onClose() {
    super.onClose();
  }

}
